/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/menu',
  name: 'system',
  meta: {
    title: '系统',
    icon: 'table'
  },
  children: [
    {
      path: 'menu',
      component: () => import('@/views/system/menu/menu'),
      name: 'menu',
      meta: {title: '菜单'}
    },
    {
      path: 'theme',
      component: () => import('@/views/system/theme/index'),
      name: 'theme',
      meta: {title: '主题', icon: 'theme'}
    },
    {
      path: 'role',
      component: () => import('@/views/system/role'),
      name: 'role',
      meta: {title: '角色'}
    },
    {
      path: 'code',
      component: () => import('@/views/system/table'),
      name: 'GenCode',
      meta: {title: '代码生成'}
    },
    {
      path: 'user',
      component: () => import('@/views/system/user'),
      name: 'user',
      meta: {title: '用户'}
    }

  ]
}
export default systemRouter
